package com.wq.myinterface.interfacedemo;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.wq.myinterface.R;

/**
 * Created by wq on 2018/11/2.
 */
public class SecondActivity extends Activity {

    private TextView tv;
    VuleCalBack calback = new VuleCalBack() {

        @Override
        public void finsh(String data) {
            tv.setText(data);
        }
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_send);
        tv = (TextView) findViewById(R.id.tv_1);
        MainActivity.SetCalBack(calback);


      /*  MainActivity.SetCalBack(new VuleCalBack() {
            @Override
            public void finsh(String data) {
                tv.setText(data);
            }
        });*/
    }
}
